 @include "bins.awk"

 function nbins(n,name,lo,hi,classes,d,w,has,breaks,\
                i,c) {
   for(c in lo)  {
     for(i=1;i<=n;i++) 
       breaks[c][i]= lo[c] + (i-1)/n * (hi[c] - lo[c]);
     breaks[c][n+1] = hi[c] }
 }
  
